<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8" />
	<title>v-text与v-html在v-bind上的使用</title>
	<script src="js/vuejs-2.5.16.js"></script>
</head>
<body>
<div id="app">
	<font v-bind:color="rs1">hello world</font>
	//v-bind:color可以简写成:color;
	<font :color="rs2">hello itcast</font>

	<a href="http://www.itcast.cn/index/id">itcast1</a>
	<a v-bind="{href:'http://www.itcast.cn/index/'+id}">itcast</a>
</div>
</body>
<script>
		//view model
		new Vue({
			el:"#app",
			data:{
				rs1:"red",
				rs2:"green",
				id:1

			}
		});
	</script>
</html>

